<!--
 * @Author: jay
 * @Date: 2021-08-12 19:57:44
 * @LastEditTime: 2021-08-17 15:54:47
 * @LastEditors: Please set LastEditors
 * @Description: 字体规则
 * @FilePath: \Briup\Common\study\2-css\css\10-font.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>字体规则</title>
    <style>
        html {
            font: normal normal 14px/1.2 '宋体'，'微软雅黑';
        }
        .one {
            background-color: lightpink;
            font-size: 12px;
            font-family: '宋体','Microsoft Yahei';
            font-weight: bolder;                                    /*加粗程度*/
            font-style: italic;
            color: #333;
            line-height: 3em;                         /* 垂直居中方式  3*12=36 */
            line-height: 3rem;                                /*  3*14=42 */
        }
    </style>
</head>
<body>
    <div class="one">元宝是只小懒猫</div>
    <div class="two">元宝拉屎贼臭</div>

</body>
</html>